import {StrictMode} from 'react'
import reactDOM from 'react-dom'
import App from './App.jsx'

import {HashRouter, Route, Switch} from 'react-router-dom'
import Goods from "./page/goods.jsx";

reactDOM.render(
    <StrictMode>
        <HashRouter>
            {/*使用Switch防止匹配多个路由*/}
            <Switch>
                <Route path="/goods" component={Goods}/>
                <Route path="/" component={App}/>
            </Switch>
        </HashRouter>
    </StrictMode>,
    document.getElementById('root'))